<!DOCTYPE html>
<!--suppress ALL-->
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('编辑')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-action-edit" th:object="${data}">
        <input type="hidden" id="id" name="id" th:field="*{id}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="id" name="id" placeholder="请输入" th:field="*{id}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">影视id：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="fId" name="fId" placeholder="请输入影视id" th:field="*{fId}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">zyk格式：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="zyk" name="zyk" placeholder="请输入zyk格式" th:field="*{zyk}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="zykyun" name="zykyun" placeholder="请输入"
                       th:field="*{zykyun}">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>
<script type="text/javascript">
    var prefix = ctx + "ajax/mfilmdetail";
    let id = [[${data.id}]];
    let ajaxUrl = prefix + "/edit";
    if (id == 0) {
        ajaxUrl = prefix + "/add";
    }

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(ajaxUrl, $('#form-action-edit').serialize());
        }
    }
</script>
</body>
</html>
